import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ScoreVO, ScoreQuery } from '@/api/school/statistics/types';

/**
 * 统计成绩列表
 * @param query
 * @returns {*}
 */

export const listScore = (query?: ScoreQuery): AxiosPromise<ScoreVO[]> => {
    return request({
      url: '/school/statistics/score',
      method: 'get',
      params: query
    });
  };